package com.utopia.keyvalue.store.impl.filehashmap;

import java.io.File;

import com.utopia.keyvalue.store.Storage;
import com.utopia.keyvalue.store.StorageTest;

/**
 * @author yanjiaqiang
 * @date 2011-3-21
 * @version $Id: FileHashMapStorageTest.java 5 2011-03-22 09:23:42Z JiaqiangYan@gmail.com $
 */
public class FileHashMapStorageTest extends StorageTest {


	@Override
	public Storage newStorage() {
		try {
			File file = File.createTempFile("FileHashMap_Test", ".db");
			return new FileHashMapStorage(file.getAbsolutePath(),
					FileHashMap.FORCE_OVERWRITE);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
